package com.hexinfo.dmpro.data.transfer.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hexinfo.dmpro.data.transfer.common.model.SourceRuleTableView;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SourceRuleTableViewMapper {

    List<String> queryDatabaseList();

    List<String> querySourceList();

    List<String> queryTableNameListByDatabase(@Param("databaseName") String databaseName);

    List<SourceRuleTableView> queryTableListByDatabase(@Param("databaseName") String databaseName);

    List<SourceRuleTableView> queryTableListBySource(@Param("sourceName") String sourceName);

    List<SourceRuleTableView> queryByDbNameAndTableName(@Param("databaseName") String databaseName, @Param("tableName") String tableName);
}
